package com.liang.exam.service;

import com.github.pagehelper.PageInfo;
import com.liang.exam.entity.Teacher;

public interface AdminService {
    void updateTeacher(int teacherId, String userName, String role);
    void deleteTeacher(int teacherId);
    void resetPassword(int teacherId);
    void addTeacher(String account, String userName, String role);
    PageInfo<Teacher> findTeacher(Teacher teacher,int pageNum, int pageSize);

    PageInfo<Teacher> selectAll(int pageNum, int pageSize);

    void updatePassword(String newPwd,Integer id);

    //这是查看当前用户的信息
    Teacher findTeacherById(Integer id);
}
